<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;

class RefereeQrcode extends Model
{
    use HasFactory;

    protected $fillable = [
        'qrcode', 'share_poster'
    ];

    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function series()
    {
        return $this->belongsTo(VehicleSeries::class, 'vehicle_series_id', 'id');
    }
}
